const { globalData } = getApp();
//------手机型号
function getSystemInfoPage() {
	// 计算页面的高度大小
	let mobileInfo = my.getSystemInfoSync();
	let { screenWidth, screenHeight, windowHeight, windowWidth, platform } = mobileInfo;
	// px换算rpx（750/屏幕宽度）
	globalData.radio = 750 / screenWidth;
	let ratio, size = 1;
	//判断屏幕高度是1334还是1624
	const rate = windowHeight / windowWidth;
	let limit = 1.8; // 临界判断值
	if (rate > limit) {
		globalData.screenFlag = true;
	}
	//判断是否是iphoneX
	if (platform == 'iOS') {
		ratio = screenWidth / screenHeight;
	} else {
		ratio = windowWidth / windowHeight;
	}
	if (ratio >= (750 / 1334)) {
		size = 2;
		globalData.iphoneX = false;
	} else {
		globalData.iphoneX = true
	}

}
export default getSystemInfoPage;